from flask import Flask
app=Flask(__name__)

#导入蓝图（修改为从模块导入）
from auth.routes import auth_bp
from auth.routes import blog_bp

#注册蓝图（添加了静态文件处理）
app.register_blueprint(
    auth_bp,
    url_prefix='/auth',
    static_folder='static',#可选静态路由
    template_folder='templates'
)

app.register_blueprint(
    blog_bp,
    url_prefix='/blog',
    static_folder='static', #可选静态路由
    template_folder='templates'
)

if __name__=="__main__":
    app.run(debug=True)